﻿using Deepseek_Robot.Modules.ViewModels;
using System.Windows;
using System.Windows.Controls;

namespace Deepseek_Robot.Modules.Views
{
    public partial class ChartPage : Page
    {
        public ChartPage()
        {
            InitializeComponent();
            
        }

        private void MediaElement_Loaded(object sender, RoutedEventArgs e)
        {
            if (DataContext is ChartViewModel viewModel)
            {
             
                viewModel.SetMediaElement(mediaPlayer);
            }
            // 可以根据需要添加逻辑
            
        }
    }
}